import { createApp } from 'vue'
import App from '@/App.vue'
import router from '@/router/index.js'

import constant from "@/utils/constant.js";
import api from "@/utils/index";
//import utools from "@/utils/utools.js";
import bus from "@/plugins/bus.js";


//全局样式
import '@/assets/style.css'

const app = createApp(App)

//------------element-plus start----------------
import 'element-plus/dist/index.css'
import installElementPlus from "@/plugins/element.js";
import * as ElIcons from '@element-plus/icons-vue'

installElementPlus(app)
for (let iconName in ElIcons) {
    app.component(iconName, ElIcons[iconName])
}
//------------element-plus end----------------

//全局引入
app.config.productionTip = false;
//app.config.globalProperties.$utools = utools;
app.config.globalProperties.$api = api
app.config.globalProperties.$constant = constant
app.config.globalProperties.$bus = bus

//路由
app.use(router)
app.mount("#app");
